﻿using System;
using System.Data;
using System.Data.SqlClient;
using System.Configuration;
using System.Collections.Generic;
using GoogleEarthClasses.Global;
using GoogleEarthClasses.Data;
using GoogleEarthClasses.Entities;
namespace GoogleEarthClasses.Logic
{
    public class LPolygon
    {
        public static Int32 Insert(EPolygon Polygon) {
            return DPolygon.Insert(Polygon.CreatedBy,
                                    Polygon.CreatedAt,
                                    Polygon.UpdatedBy,
                                    Polygon.UpdatedAt,
                                    "",
                                    Polygon.Name,
                                    Polygon.TypeName,
                                    Polygon.Points,
                                    Polygon.Description);
        }
        public static void Update(EPolygon Polygon) { 
            DPolygon.Update(Polygon.PolygonId,
                            Polygon.UpdatedBy,
                            Polygon.UpdatedAt,
                            "",
                            Polygon.Name,
                            Polygon.TypeName,
                            Polygon.Points,
                            Polygon.Description);
        }
        public static void Delete(EPolygon Polygon) {
            DPolygon.Delete(Polygon.PolygonId);
        }
    }
}
